package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderInvoice;
import com.nbsaas.boot.order.api.domain.response.OrderInvoiceResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* -实体对象转化成响应对象
*/

public class OrderInvoiceResponseConvert  implements Converter<OrderInvoiceResponse,OrderInvoice> {

    @Override
    public OrderInvoiceResponse convert(OrderInvoice source) {
        OrderInvoiceResponse  result = new  OrderInvoiceResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

